<%-- 
    Description: Use to confirm you want to delete this permission assignee. 
                 When you delete it,the role,group or person will lose this permission.
    Author:Sun Chongyang
--%>
<%@ page language="java" contentType="text/html;charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page import="com.nastation.pm.util.*"%>
<%@ page import="com.nastation.pm.business.*"%>
<%@ page import="com.nastation.pm.bean.*"%>

<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>

	</head>

	<body>
		<%
			String idStr= request.getParameter("id");
			int id=Integer.parseInt(idStr);
			String schemeId= request.getParameter("schemeId");
			PermissionAssigneeBO paBO=new PermissionAssigneeBO();
			PermissionAssignee pa=paBO.getPermissionAssignee(id);
		%>

		<form action="doDeletePermission.jsp">
			<table class="simpleform maxWidth">
				<tbody>
					<tr>
						<td class="simpleformheader" colspan="2">
							<h3 class="formtitle">
								Delete Permission
							</h3>
						</td>
					</tr>
					<tr>
						<td class="simpleformheader" colspan="2">
							<input type="hidden" value="<%=id %>" name="id" />
							<input type="hidden" value="<%=schemeId %>" name="schemeId" />
							Are you sure you want to delete
							<b> <%=pa.getAssigneeType() %></b> (<%=pa.getAssignee() %>) for permission:
							<b><%=pa.getPermission() %></b>
							<br />
						</td>
					</tr>
					<tr>
						<td class="fullyCentered simpleformfooter" colspan="2">
							<input id="删除" class="spaced" type="submit" title="按 Alt+S 提交"
								accesskey="S" value="删除" name="删除" />
							<input id="cancelButton" type="button"
								onclick="window.history.back();"
								value="取消" name="Cancel"
								title="取消 (Alt + `)" accesskey="`" />
						</td>
					</tr>
				</tbody>
			</table>
		</form>

	</body>
</html>
